#include "ngcard.h"
#include "source/logger.h"

NgCard::NgCard()
{
}

void NgCard::addDefect(int code)
{
    if (defectsSet_.find(code) == defectsSet_.end())
    {
        LogTrack << "ADDNG << " << code;
        defectsSet_.insert(code);
        defects_.push_back(code);
    }
}

std::vector<int> NgCard::getDefects() const
{
    return defects_;
}
